Warning: Problem with method call - please report

chris (2006-01-19 11:28:40)
3694 views
0 replies
This error started to appear on a site which I was working on. It started to happen when a new developer came and started to add php libraries and includes - not to blame the new developer, but something was screwing with method calls to my PEAR classes. This is what the error looked like:

Warning: Problem with method call - please report this bug in /usr/local/lib/php/DB.php on line 520

Warning: Problem with method call - please report this bug in /usr/local/lib/php/DB.php on line 551

Warning: Problem with method call - please report this bug in /usr/local/lib/php/DB.php on line 557


I have no idea why this suddenly started happening, but managed to suppress the error by adding '@' before the method calls in my php scripts, such as:

$db=@DB::connect($dsn,TRUE); and

if (@DB::isError($db)) {
...
}

If anybody can shed some light on what actually triggets this 'problem with method call', please let me know. As it happens, there doesn't appear to be any problem and everything works just fine.


christo
comment